package com.wanlian.router.ui.manage;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.smart.android.ui.tools.MyNiuBAdapter;
import com.wanlian.router.R;
import com.wanlian.router.bean.NetDevice;

import java.util.List;

import butterknife.BindView;

/**
 * Created by Hyu on 2018/9/5.
 * Email: fvaryu@qq.com
 */
public class OnlineDeviceAdapter extends MyNiuBAdapter<NetDevice>{

    public OnlineDeviceAdapter(Context context, List<NetDevice> mTs) {
        super(context, mTs);
    }

    @Override
    public int layout() {
        return R.layout.layout_item_online_device;
    }

    @Override
    public MyViewHolder<NetDevice> holder(View view) {
        return new OnlineHolder(view);
    }

    class OnlineHolder extends MyViewHolder<NetDevice> {

        @BindView(R.id.tv_u)
        TextView tv_u;
        @BindView(R.id.tv_d)
        TextView tv_d;
        @BindView(R.id.tv_mac)
        TextView tv_mac;
        @BindView(R.id.tv_status)
        TextView tv_status;
        @BindView(R.id.tv_name)
        TextView tv_name;
        @BindView(R.id.image_logo)
        ImageView image_logo;

        public OnlineHolder(View view) {
            super(view);
        }

        @Override
        public void setData(int i, NetDevice netDevice) {

        }
    }
}
